package com.preskool.controller;

import com.preskool.dto.ActionResult;
import com.preskool.mapper.StudentMapper;
import com.preskool.po.Student;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author kennyzzz
 * @Data 2021/1/6 16:14
 */
@RestController
@Slf4j
public class TestController {
    @Autowired(required = false)
    private StudentMapper studentMapper;
    @RequestMapping("/test")
    public ActionResult test(){
        System.out.println(studentMapper.selectByPrimaryKey(1));
        return new ActionResult(200,"赵博是个瓜皮",new Student());
    }
}
